package it.nexsoft.dyn.compiler;


public class DynClass {

	private String className;

	private String javaFile;
	private String javaSource;
	
	private Class<?> javaClass;
	private byte[] javaByteCode;

	public DynClass(String className) {
		this.setClassName(className);
		this.setJavaFile(className.replace('.', '/') + ".java");

	}

	/**
	 * @return the className
	 */
	public String getClassName() {
		return className;
	}

	/**
	 * @param className the className to set
	 */
	public void setClassName(String className) {
		this.className = className;
	}

	/**
	 * @return the javaFile
	 */
	public String getJavaFile() {
		return javaFile;
	}

	/**
	 * @param javaFile the javaFile to set
	 */
	public void setJavaFile(String javaFile) {
		this.javaFile = javaFile;
	}

	/**
	 * @return the javaSource
	 */
	public String getJavaSource() {
		return javaSource;
	}

	/**
	 * @param javaSource the javaSource to set
	 */
	public void setJavaSource(String javaSource) {
		this.javaSource = javaSource;
	}

	/**
	 * @return the javaClass
	 */
	public Class<?> getJavaClass() {
		return javaClass;
	}

	/**
	 * @param javaClass the javaClass to set
	 */
	public void setJavaClass(Class<?> javaClass) {
		this.javaClass = javaClass;
	}

	/**
	 * @return the javaByteCode
	 */
	public byte[] getJavaByteCode() {
		return javaByteCode;
	}

	/**
	 * @param javaByteCode the javaByteCode to set
	 */
	public void setJavaByteCode(byte[] javaByteCode) {
		this.javaByteCode = javaByteCode;
		if (this.javaByteCode == null) {
			this.javaClass = null;
			return;
		}
		
	}
		
}
